home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_4.adf / Compiler_Headers / Include / dos / var.h < prev   
C/C++ Source or Header  |  1992-07-30  |  2KB  |  59 lines

  1. #ifndef DOS_VAR_H
  2. #define DOS_VAR_H
  3. /*
  4. **
  5. **    $Filename: dos/var.h $
  6. **    $Release: 2.04 Includes, V37.4 $
  7. **    $Revision: 36.10 $
  8. **    $Date: 91/03/14 $
  9. **
  10. **    include file for dos local and environment variables
  11. **
  12. **    (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  13. **        All Rights Reserved
  14. **
  15. */
  16.  
  17.  
  18. #ifndef EXEC_NODES_H
  19. #include "exec/nodes.h"
  20. #endif
  21.  
  22. /* the structure in the pr_LocalVars list */
  23. /* Do NOT allocate yourself, use SetVar()!!! This structure may grow in */
  24. /* future releases!  The list should be left in alphabetical order, and */
  25. /* may have multiple entries with the same name but different types.    */
  26.  
  27. struct LocalVar {
  28.     struct Node lv_Node;
  29.     UWORD    lv_Flags;
  30.     UBYTE    *lv_Value;
  31.     ULONG    lv_Len;
  32. };
  33.  
  34. /*
  35.  * The lv_Flags bits are available to the application.    The unused
  36.  * lv_Node.ln_Pri bits are reserved for system use.
  37.  */
  38.  
  39. /* bit definitions for lv_Node.ln_Type: */
  40. #define LV_VAR            0    /* an variable */
  41. #define LV_ALIAS        1    /* an alias */
  42. /* to be or'ed into type: */
  43. #define LVB_IGNORE        7    /* ignore this entry on GetVar, etc */
  44. #define LVF_IGNORE        0x80
  45.  
  46. /* definitions of flags passed to GetVar()/SetVar()/DeleteVar() */
  47. /* bit defs to be OR'ed with the type: */
  48. /* item will be treated as a single line of text unless BINARY_VAR is used */
  49. #define GVB_GLOBAL_ONLY        8
  50. #define GVF_GLOBAL_ONLY        0x100
  51. #define GVB_LOCAL_ONLY        9
  52. #define GVF_LOCAL_ONLY        0x200
  53. #define GVB_BINARY_VAR        10        /* treat variable as binary */
  54. #define GVF_BINARY_VAR        0x400
  55. #define GVB_DONT_NULL_TERM    11    /* only with GVF_BINARY_VAR */
  56. #define GVF_DONT_NULL_TERM    0x800
  57.  
  58. #endif /* DOS_VAR_H */
  59.